package com.qujia.station.domain;

import lombok.Data;
import org.json.JSONObject;
import org.json.XML;

/**
 * @Auther: zph
 * @Date: 2024/3/21 14:50
 * @Description:
 */
@Data
public class ReceiveMessage {
    /**
     * 订阅
     */
    public static final String SUBSCRIBE = "subscribe";
    /**
     * 取消订阅
     */
    public static final String UNSUBSCRIBE = "unsubscribe";
    /**
     * 回复文本消息
     */
    public static String replyTextMsg = "<xml>\n" +
            "  <ToUserName><![CDATA[%s]]></ToUserName>\n" +
            "  <FromUserName><![CDATA[%s]]></FromUserName>\n" +
            "  <CreateTime>%s</CreateTime>\n" +
            "  <MsgType><![CDATA[text]]></MsgType>\n" +
            "  <Content><![CDATA[%s]]></Content>\n" +
            "</xml>";
    /**
     * 扫描带参二维码进公众号
     */
    public static final String SCAN = "SCAN";
    //开发者微信号
    private String ToUserName;
    //发送方openID
    private String FromUserName;
    //消息创建时间(整形)
    private String CreateTime;
    //消县类型
    private String MsgType;
    //文本消息内容
    private String Content;
    //消息id 64位
    String MsgId;
    //消县的数据ID 消息来自文章才有
    private String MsgDatald;
    private String Idx;
    //订阅事件 subscribe订间 unsbscribe取消了阅
    private String Event;
    //带参二维码参数 qrscene_为前缀，后面为二维码的参数值
    private String EventKey;

}
